'use strict';

angular.module("app").service('OrderService', ['dbUtils', '$http', '$q', function (dbUtils, $http, $q) {
    return {
        delete: function(orderNo){
            return dbUtils.post("/orders/delete",{orderNo:orderNo});
        },
        send: function(orderNo){
            return dbUtils.post("/orders/send",{orderNo:orderNo});
        },
        receive: function(orderNo){
            return dbUtils.post("/orders/receive",{orderNo:orderNo});
        },
        getDetail: function(orderNo){
            return dbUtils.post("/orders/detail",{orderNo:orderNo});
        }
    }
}]);